# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=terragrunt
pkgver=0.38.4
pkgrel=0
pkgdesc="Thin wrapper for Terraform providing extra tools"
url="https://terragrunt.gruntwork.io/"
arch="all"
license="MIT"
depends="terraform"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/gruntwork-io/terragrunt/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # Various tests need AWS or Google cloud credentials

build() {
	go build -v -o bin/$pkgname -ldflags "-X main.VERSION=v$pkgver"
}

package() {
	install -Dm755 "$builddir"/bin/$pkgname -t "$pkgdir"/usr/bin
}

sha512sums="
4f82578b2af033e583739386adb7210cb3d3e409111f648aaaab73c4e12c77916c92a617cbd94d82ef7203e4d0f93ddaaa3523c487d4da34343e3a82ca45c032  terragrunt-0.38.4.tar.gz
"
